package org.zsl.aop.advice;


import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

import javax.print.attribute.standard.JobName;

@Aspect
@Component
public class ToolAspectAdvice2 {


    @Before("execution(* org.zsl.aop.dao.*.*(..))")
    public void before(){
        System.out.println("before:正在审核用户权限...");
    }

    @After("execution(* org.zsl.aop.dao.*.*(..))")
    public void after(JoinPoint joinPoint){

        System.out.println("记录日志中....");
        System.out.println("当前执行的方式是:"+joinPoint.getSignature().getName());
    }
}
